function [position,isterminal,direction] = HaltProp(~,S,u)

position = S(2); % The value that we want to be zero
if S(1)<0
    isterminal = 1;
else
    isterminal = 0;
end
direction = 0;

end